#include "rectangle.h"
#include <iostream>


using namespace std;


//构造函数定义
rectangle :: rectangle(double l,double w) {
    length = l;
    width = w;
}

//面积函数定义
double rectangle :: get_area() {
    return length * width;
}

double rectangle :: get_perimeter() {
    return 2 * (length + width);
}